package com.framework.admin.model;

import com.framework.common.config.EntityUpdateListener;
import com.framework.common.listener.impl.BaseEntityUpdate;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;


/**
 * @description: 公司表 model
 * @author: lusy
 * @version: 1.0
 * @date: 2021-03-05 10:59:15
 */
@Data
@Entity
@Table(name = "sys_company")
@EntityListeners(EntityUpdateListener.class)
@org.hibernate.annotations.Table(appliesTo = "sys_company", comment = "公司表")
public class SysCompany extends BaseEntityUpdate {

	@NotBlank
	@Size(max=45, message="简称最大45字符")
	@Column(columnDefinition = "varchar(45) default '' COMMENT '简称' ")
	private String simplename;

	@Size(max=255, message="全称最大255字符")
	@Column(columnDefinition = "varchar(255) default '' COMMENT '全称' ")
	private String fullname;

	@Column(columnDefinition = "varchar(32) default '' COMMENT '公司类型(字典)' ")
	private String companyType;

	@Column(columnDefinition = "varchar(32) default '' COMMENT '区域(字典)' ")
	private String companyRegion;

	@Column(columnDefinition = "varchar(32) default '' COMMENT 'logo' ")
	private String logo;
	
	@Column(columnDefinition = "varchar(32) default '' COMMENT 'code' ")
	private String code;

}
